<template>
  <div>
    <el-carousel height="500px" :autoplay="false">
      <el-carousel-item v-for="item in imgList" :key="item.id">
        <el-image :src="item.url" fit="cover"></el-image>
      </el-carousel-item>
    </el-carousel>
  </div>
</template>

<script>
export default {
  data() {
    return {
      imgList: [
        {
          id: 1,
          url: require('@/assets/img/wel_1.png')
        },
        {
          id: 2,
          url: require('@/assets/img/wel_2.png')
        },
        {
          id: 3,
          url: require('@/assets/img/wel_3.png')
        },
        {
          id: 4,
          url: require('@/assets/img/wel_4.png')
        }
      ]
    }
  }
}
</script>

<style lang="less" scoped>
.el-carousel {
  .el-image {
    width: 100%;
  }
}
</style>
